package com.generator.dao.courseAnswers;

import com.generator.entity.courseAnswers.CourseAnswers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component(value = "CourseAnswersDao")
public interface CourseAnswersDao {

    void addCourseAnswers(@Param("courseAnswers")CourseAnswers courseAnswers);

    void delCourseAnswers(@Param("eid")int eid);

    void updateCourseAnswers(@Param("courseAnswers")CourseAnswers courseAnswers);

    CourseAnswers findCourseAnswerById(@Param("eid")int eid);

    List<CourseAnswers> findAllCourseAnswers();

}

